import "./index.scss";
import TableFooter from "./TableFooter";
import TableBody from "./TableBody";
import TableCaption from "./TableCaption";
import { TableCell } from "./TableCell";
import TableHeader from "./TableHeader";
import { TableRow } from "./TableRow";
import InternalTable from "./InternalTable";

type TableType = typeof InternalTable & {
  Row: typeof TableRow;
  Cell: typeof TableCell;
  Caption: typeof TableCaption;
  Header: typeof TableHeader;
  Body: typeof TableBody;
  Footer: typeof TableFooter;
};

const Table = InternalTable as TableType;
Table.Row = TableRow;
Table.Cell = TableCell;
Table.Caption = TableCaption;
Table.Body = TableBody;
Table.Header = TableHeader;
Table.Footer = TableFooter;

export default Table;
